<template>
    <div>
        <mt-field
         type="text" label="用户名" placeholder="请输入用户名" state="success" :attr="{maxlength:'12'}">
        </mt-field>
        <mt-field
         type="password" label="密码" placeholder="请输入密码" state="warning" :attr="{maxlength:'8',autocomplate:'off'}">
         </mt-field>
        <mt-field
         type="password" label="确认密码" placeholder="请输入密码" state="error">
         </mt-field>
    </div>
</template>